High Performance Parallel Runtimes by Michael Klemm Jim Cownie

High Performance Parallel Runtimes by Michael Klemm Jim Cownie

Author:Michael Klemm, Jim Cownie
Language: eng
Format: epub, pdf
Publisher: De Gruyter
Published: 2021-02-08T11:28:08.851000+00:00


6.3

Classes of locks

In this chapter, we only discuss the simplest kind of lock: one which can be acquired by a single thread and later released by the same thread, and can only be owned by a single thread at a time.

There are other classes of lock with slightly different semantics, such as:

Recursive Lock: A recursive lock can be claimed many times by a single thread and then has to be released as many times as it was claimed. It can clearly be implemented relatively easily as a wrapper around any of the basic locks we discuss.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.